public class Main {
    public static void main(String[] args) {
        int[] arr = new int[]{1,4,2,3};
        java.util.Arrays.sort(arr);
        System.out.println(java.util.Arrays.toString(arr));
    }
}